package com.itheima.demo08;

import java.util.Random;

public class PacketTest {
    public static void main(String[] args) {
        /*
        * 需求: 100元，分3个包，5个人抢
        *
        * 打印3个抢到的红包信息
        * 打印2个未抢到红包信息
        * */

        RedPacketThead t1 = new RedPacketThead();
        RedPacketThead t2 = new RedPacketThead();
        RedPacketThead t3 = new RedPacketThead();
        RedPacketThead t4 = new RedPacketThead();
        RedPacketThead t5 = new RedPacketThead();

        t1.setName("小米");
        t2.setName("小Q");
        t3.setName("小W");
        t4.setName("小R");
        t5.setName("小T");

        t1.start();
        t2.start();
        t3.start();
        t4.start();
        t5.start();


    }
}
